﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VQData;
using System.Data;
using System.Data.Linq;
using VQWEB.common;

namespace VQWEB.administrator.sources
{
    public class TagData
    {
      

        public List<int> GetTagByName(string[] array_name) {
            List<int> list = new List<int>();
            using (CoreModelDataContext context = new CoreModelDataContext()) {
                list = (from t in context.core_tags
                             where array_name.Contains(t.tag_keyword)
                             select t.tag_id).ToList();                
            
            }
            return list;
        }

       
    }
}